<?php
//include "lock.php";
include "public/common/common.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>Title</title>
    <link href="<?php echo $publicPath?>css/bootstrap.min.css" rel="stylesheet"/>
    <script src="<?php echo $publicPath?>jQuery/jquery-3.1.1.min.js"></script>
    <script src="<?php echo $publicPath?>js/bootstrap.min.js"></script>
    <style>
    	*{
    		margin: 0;
    	}
    	html{
    		height: 100%;
    	}
    	body{
    		height: 100%;
    		margin: 0;
    		/*overflow: hidden;*/
    		overflow-y: scroll;
    	}
        .nav-ul-right{
            min-width:250px;
        }
        .bdRed{
            background:red;
        }
        #slider_left{
            margin-top:51px;
        }
        .li-top{
            /*margin:5px;*/
        }
        .navbar-right{
        	margin: 0;
        }
        .page_main .row{
            margin-right: 0;
            /*height: 100%;*/
        }
        .page_main .row div{
            /*height: 100%;*/
            margin: 0;
    		overflow: hidden;
        }
        @media (min-width:768px){
            #slider_left{
                width:235px;
                height:600px;
                position:absolute;
            }
            .page_main{
                margin-left:245px;
                margin-top: 0;
                margin-bottom: 0;
                /*height: 100%;*/
            }
        }
    </style>
    <!--<script type="text/javascript" language="javascript">
		$(window.parent.document).find("#myiframe").load(function(){
			var main = $(window.parent.document).find("#myiframe");
			var thisheight = $(document).height()+30;
			main.height(thisheight);
		});
	</script>-->
</head>
<body>
    <nav class="navbar navbar-inverse navbar-static-top">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" data-toggle="collapse" data-target="#slider_left">
                <span class="sr-only"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="#" class="navbar-brand">网站后台管理</a>
        </div>
        <ul class="nav navbar-nav navbar-right nav-ul-right row">
            <li class="col-xs-6"><a href="#"><span class="badge bdRed">超级管理员：</span></a></li>
            <li class="col-xs-6"><a href="logout.php" target="_top" onclick="return confirm('你确定退出系统吗？')"><span class="glyphicon glyphicon-off"></span>&nbsp;注销</a></li>
        </ul>
        <!--------------------------------------侧边栏----------------------------------------------->
        <div class="navbar-default collapse  navbar-collapse" id="slider_left">
            <ul class="nav">
                <!--<li class="li-top">
                    <div class="input-group">
                        <input class="form-control"/>
                        <span class="input-group-btn">
                            <button class="btn btn-default">
                                <span class="glyphicon glyphicon-search"></span>
                            </button>
                        </span>
                    </div>
                </li>-->
                <li>
                    <a href="#sub1" data-toggle="collapse">爬虫管理
                        <span class="glyphicon glyphicon-menu-right pull-right"></span>
                    </a>
                    <ul id="sub1" class="nav collapse">
                        <li><a href="spider/index.php" target="content"><span class="glyphicon glyphicon-info-sign"></span>爬虫列表</a></li>
                        <li><a href="spider/add.php" target="content"><span class="glyphicon glyphicon-user"></span>增加地址</a></li>
                    </ul>
                </li>
                
            </ul>
        </div>
    </nav>
<!-------------------------------------------------------核心区域-------------------------------------------------------->
    <div class="page_main">
        <!--面包导航-->
        <!--<ol class="breadcrumb">
            <li><a href="#">管理首页</a></li>
            <li><a href="#">栏目</a></li>
            <li class="active">增加栏目</li>
        </ol>-->

        <div class="row">
            <div class="col-md-6">
                <!--面板-->
                <!--<div class="panel panel-default">
                    <div class="panel-heading">最新订单</div>
                    <div class="panel-body">
                        <table class="table table-striped table-hover table-bordered" >
                            <thead>
                                <tr>
                                    <th>#</th>
                                    <th>订单号</th>
                                    <th>订单日期</th>
                                    <th>总价</th>
                                    <th>状态</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td><td>12345</td><td>2017-08-17 15:55:00</td><td>345</td><td>出库</td>
                                </tr>
                                <tr>
                                    <td>1</td><td>12345</td><td>2017-08-17 15:55:00</td><td>345</td><td>出库</td>
                                </tr>
                                <tr>
                                    <td>1</td><td>12345</td><td>2017-08-17 15:55:00</td><td>345</td><td>出库</td>
                                </tr>
                                <tr>
                                    <td>1</td><td>12345</td><td>2017-08-17 15:55:00</td><td>345</td><td>出库</td>
                                </tr>
                                <tr>
                                    <td>1</td><td>12345</td><td>2017-08-17 15:55:00</td><td>345</td><td>出库</td>
                                </tr>
                                <tr>
                                    <td>1</td><td>12345</td><td>2017-08-17 15:55:00</td><td>345</td><td>出库</td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>-->
                <iframe id="myiframe" name="content" frameborder="0"
scrolling="no" width="100%" height="100%" onload="this.height=this.contentWindow.document.body.scrollHeight"></iframe>
            </div>

            
        </div>
        
    </div>
</body>
</html>